package com.pro.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

public class JsProduct implements Serializable {
    private Integer productId;//主键商品id
    private Integer productCode;//商品编号
    private Integer categroyId;//商品分类
    private String title;//分类名称
    private Integer recommend;//商品推荐，2新品，3推荐
    private Integer discount;//是否可用优惠券，2yes，3no
    private Integer ensure;//服务保证，2退货无忧，3快速退款，4包邮
    private String productName;//商品名称
    private String searchKeywords;//搜索商品关键字
    private String mainImage;//商品主图
    private Long currentpriceProduct;//商品现价
    private Long originalpriceProduct;//商品原价
    private String productDescription;//商品描述，简介
    private Integer hits;//商品的点击量
    private Integer productSate;//商品状态，0已删除，1上架，2下架
    private Integer createId;//创建人
    private String createName;//创建人名称
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createDate;//创建时间
    private Integer updateId;//更新人
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateDate;//更新时间
    private String result;//审核状态
    private String productLabel;//商品标签
    private Integer saleNum;//销量
    private Integer collectionNum;//收藏量
    private Integer countNum;

    public JsProduct() {
        super();
    }

    public JsProduct(Integer productId, Integer productCode, Integer categroyId, String title, Integer recommend, Integer discount, Integer ensure, String productName, String searchKeywords, String mainImage, Long currentpriceProduct, Long originalpriceProduct, String productDescription, Integer hits, Integer productSate, Integer createId, String createName, Date createDate, Integer updateId, Date updateDate, String result, String productLabel, Integer saleNum, Integer collectionNum, Integer countNum) {
        this.productId = productId;
        this.productCode = productCode;
        this.categroyId = categroyId;
        this.title = title;
        this.recommend = recommend;
        this.discount = discount;
        this.ensure = ensure;
        this.productName = productName;
        this.searchKeywords = searchKeywords;
        this.mainImage = mainImage;
        this.currentpriceProduct = currentpriceProduct;
        this.originalpriceProduct = originalpriceProduct;
        this.productDescription = productDescription;
        this.hits = hits;
        this.productSate = productSate;
        this.createId = createId;
        this.createName = createName;
        this.createDate = createDate;
        this.updateId = updateId;
        this.updateDate = updateDate;
        this.result = result;
        this.productLabel = productLabel;
        this.saleNum = saleNum;
        this.collectionNum = collectionNum;
        this.countNum = countNum;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getProductCode() {
        return productCode;
    }

    public void setProductCode(Integer productCode) {
        this.productCode = productCode;
    }

    public Integer getCategroyId() {
        return categroyId;
    }

    public void setCategroyId(Integer categroyId) {
        this.categroyId = categroyId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getRecommend() {
        return recommend;
    }

    public void setRecommend(Integer recommend) {
        this.recommend = recommend;
    }

    public Integer getDiscount() {
        return discount;
    }

    public void setDiscount(Integer discount) {
        this.discount = discount;
    }

    public Integer getEnsure() {
        return ensure;
    }

    public void setEnsure(Integer ensure) {
        this.ensure = ensure;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getSearchKeywords() {
        return searchKeywords;
    }

    public void setSearchKeywords(String searchKeywords) {
        this.searchKeywords = searchKeywords;
    }

    public String getMainImage() {
        return mainImage;
    }

    public void setMainImage(String mainImage) {
        this.mainImage = mainImage;
    }

    public Long getCurrentpriceProduct() {
        return currentpriceProduct;
    }

    public void setCurrentpriceProduct(Long currentpriceProduct) {
        this.currentpriceProduct = currentpriceProduct;
    }

    public Long getOriginalpriceProduct() {
        return originalpriceProduct;
    }

    public void setOriginalpriceProduct(Long originalpriceProduct) {
        this.originalpriceProduct = originalpriceProduct;
    }

    public String getProductDescription() {
        return productDescription;
    }

    public void setProductDescription(String productDescription) {
        this.productDescription = productDescription;
    }

    public Integer getHits() {
        return hits;
    }

    public void setHits(Integer hits) {
        this.hits = hits;
    }

    public Integer getProductSate() {
        return productSate;
    }

    public void setProductSate(Integer productSate) {
        this.productSate = productSate;
    }

    public Integer getCreateId() {
        return createId;
    }

    public void setCreateId(Integer createId) {
        this.createId = createId;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getUpdateId() {
        return updateId;
    }

    public void setUpdateId(Integer updateId) {
        this.updateId = updateId;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getProductLabel() {
        return productLabel;
    }

    public void setProductLabel(String productLabel) {
        this.productLabel = productLabel;
    }

    public Integer getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(Integer saleNum) {
        this.saleNum = saleNum;
    }

    public Integer getCollectionNum() {
        return collectionNum;
    }

    public void setCollectionNum(Integer collectionNum) {
        this.collectionNum = collectionNum;
    }

    @Override
    public String toString() {
        return "JsProduct{" +
                "productId=" + productId +
                ", productCode=" + productCode +
                ", categroyId=" + categroyId +
                ", title='" + title + '\'' +
                ", recommend=" + recommend +
                ", discount=" + discount +
                ", ensure=" + ensure +
                ", productName='" + productName + '\'' +
                ", searchKeywords='" + searchKeywords + '\'' +
                ", mainImage='" + mainImage + '\'' +
                ", currentpriceProduct=" + currentpriceProduct +
                ", originalpriceProduct=" + originalpriceProduct +
                ", productDescription='" + productDescription + '\'' +
                ", hits=" + hits +
                ", productSate=" + productSate +
                ", createId=" + createId +
                ", createName='" + createName + '\'' +
                ", createDate=" + createDate +
                ", updateId=" + updateId +
                ", updateDate=" + updateDate +
                ", result='" + result + '\'' +
                ", productLabel='" + productLabel + '\'' +
                ", saleNum=" + saleNum +
                ", collectionNum=" + collectionNum +
                ", countNum=" + countNum +
                '}';
    }

    public Integer getCountNum() {
        return countNum;
    }

    public void setCountNum(Integer countNum) {
        this.countNum = countNum;
    }

}
